/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.NguoiDungDAO;
import POJO.NguoiDungPOJO;
import java.util.ArrayList;

/** @author
 *  ITEC.HCMUS.EDU.VN
 *  Ngô Huy Đạt
 *  0869005
 *  nhdat.itec@gmail.com
 */
public class NguoiDungBUS {

    public static  ArrayList<NguoiDungPOJO> selectAll(){
        ArrayList<NguoiDungPOJO> list = NguoiDungDAO.selectAll();
        return list;
    }

    public static boolean insert(String TaiKhoan,String TenNguoiDung, String MatMa,String QLNamHoc, String QLLop, String QLHocSinh, String QLMon, String QLQuyDinh,String DSHocSinh, String XepLop,String NhapDiem, String BCMon){
        boolean kq = NguoiDungDAO.insert(TaiKhoan, TenNguoiDung, MatMa, QLNamHoc, QLLop, QLHocSinh, QLMon, QLQuyDinh, DSHocSinh, XepLop,NhapDiem,BCMon);
        return kq;
    }

    public static boolean  delete(String TaiKhoan) {
        boolean kq = NguoiDungDAO.delete(TaiKhoan);
        return kq;
    }

    public static boolean  update(String TaiKhoan,String TenNguoiDung, String MatMa,String QLNamHoc, String QLLop, String QLHocSinh, String QLMon, String QLQuyDinh,String DSHocSinh, String XepLop,String NhapDiem, String BCMon) {
        boolean kq = NguoiDungDAO.update(TaiKhoan, TenNguoiDung, MatMa, QLNamHoc, QLLop, QLHocSinh, QLMon, QLQuyDinh, DSHocSinh, XepLop,NhapDiem,BCMon);
        return kq;
    }
}
